<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>css prites 雪碧图</title>
    <style>
        .all-icons{
            text-align: center;
            width:400px;
            height: 50px;
            border:1px solid #333;
            margin:50px auto;
            line-height: 70px;
        }
        
        .all-icons a{
           
            position: relative;
            display: inline-block;
            width:30px;height:30px;
            background:#333;
            border-radius:50%;
            
        }
        .all-icons span{
            position: absolute;
            top:50%;
            left:50%;
            transform:translate(-50%,-50%);
           
            height:18px;
            width:18px;
           
            background: url('images/icons_type.png');
        }
        .all-icons .qq{
            background-position-x:-19px; 
        }
        .all-icons .weibo{
            background-position-x:-38px; 
        }
        .all-icons .pay{
            width:26px;
            background-position-x:-57px; 
        }
        .all-icons .wechat{
            width:23px;
            background-position-x:-84px; 
        }
    </style>
</head>
<body>
    <div class="all-icons ">
        <a href="#"><span class="qq"></span></span></a>
        <a href="#"><span class="weibo"></span></span></a>
        <a href="#"><span class="pay"></span></span></a>
        <a href="#"><span class="wechat"></span></span></a>


    </div>
</body>
</html>